Skip to main content

WidgetEnabledProperty

Type

operator

Summary

Manipulates the enabled property of a child widget

Syntax

the enabled of <mWidget>

Description

Use the enabled property to control the disabled/enabled state of child widgets. The child widget can change its appearance and behavior based on the result of the 'my enabled' expression.

Parameters

NameTypeDescription

mWidget

The child widget object

Examples

private variable mChild as Widget

public handler OnCreate() returns nothing
put a new widget "com.livecode.widget.button" into mChild
place mChild
-- mChild is initially disabled
set the enabled of mChild to false
end handler

expression: MyDisabled

Thank you for your feedback!

Was this page helpful?